package com.cloud.controller;

import com.cloud.Service.SysLogService;
import com.cloud.myInterface.Factory;
import com.cloud.tools.CommonResult;
import com.cloud.tools.CommonResultFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.smartcardio.CommandAPDU;

/**
 * @Author: Tangtao
 * @Date: 2022/5/12 9:40
 * @Description:
 * @ClassName:
 */
@RestController
public class LogController {

    @Resource
    private SysLogService sysLogService;

    private final Factory resultFactory = new CommonResultFactory();

    @GetMapping("/user/Log/check")
    public CommonResult getLog(){
        return resultFactory.getResultInstance(200,"查询成功", sysLogService.getLog());
    }
}
